package neuralnetwork;


import java.io.Serializable;

import org.neuroph.core.Connection;
import org.neuroph.core.Neuron;
import org.neuroph.core.Weight;

/**
 * Weighted connection to another neuron.
 * 
 * @see Weight
 * @see Neuron
 * @author Xinzheng Zhao
 */
public class myConnection extends Connection implements Serializable {
	private static final long serialVersionUID = 1L;
	protected double prevAngles;
	protected double prevDistance;
	protected boolean flag;

	public void setflag(boolean flag){
		this.flag = flag;
	}
	public boolean getflag(){
		return flag;
	}
	public double getPrevDistance() {
		return prevDistance;
	}
	public void setPrevDistance(double prevDistance) {
		this.prevDistance = prevDistance;
	}
	public double getPrevAngles() {
		return prevAngles;
	}
	public void setPrevAngles(double prevAngles) {
		this.prevAngles = prevAngles;
	}
	public myConnection(Neuron fromNeuron, Neuron toNeuron) {
		super(fromNeuron, toNeuron);
		prevAngles = 0;
		prevDistance = 1;
		flag = false;
	
	}
	public myConnection(Neuron fromNeuron, Neuron toNeuron, Weight weight) {
		super(fromNeuron, toNeuron, weight);
		prevAngles = 0;
		prevDistance = 1;
		flag = false;
	
	}
	public myConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal) {
		super(fromNeuron, toNeuron, weightVal);
		prevAngles = 0;
		prevDistance = 1;
		flag = false;
	
	}

    
}
